package com.advertisementsystem.entity;

import com.advertisementsystem.Dto.TimeSlot;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ad_schedule")
public class Schedule implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;

    private Long advertisementId;
    private Long deviceId;
    private LocalDateTime startTime;
    private LocalDateTime endTime;

    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<TimeSlot> timeSlots;

    private String status;
    private String remark;
    private LocalDateTime createdTime;
    private LocalDateTime updatedTime;

    private Long impressions;

    private Long clicks;

    private Long negotiationId;


}
